from flask import Blueprint, render_template
from flask_security import roles_accepted, current_user

from application import User, Course

stage_bp = Blueprint('stage', __name__)


@stage_bp.route('/')
def stage_index():
    course = Course.query.get(3)
    # articles =
    return render_template('stage/index.html', course=course, usr=current_user)


@stage_bp.route('/adsee')
@roles_accepted('admin')
def admin_can_see():
    return 'admin'